-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(starknet_gateway_types,starknet_http_server): move spec error conversion to the http server #2904
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
Graphite Automations"Yair - Auto-assign" took an action on this PR • (12/23/24)1 assignee was added to this PR based on Yair's automation. |
03b0b7e
to
25a2089
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 2 of 5 files at r1, 3 of 3 files at r2, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @alonh5 and @yair-starkware)
crates/starknet_http_server/src/errors.rs
line 33 at r2 (raw file):
let general_rpc_error = match err { GatewayClientError::ClientError(e) => { error!("Got a gateway client: {}", e);
Encountered a ClientError
Code quote:
Got a gateway client
crates/starknet_http_server/src/errors.rs
line 43 at r2 (raw file):
source, p2p_message_metadata: _, }) => {
Please add a todo to into_rpc()
on the entirety of GatewayError
, not just the source
member.
Code quote:
GatewayClientError::GatewayError(GatewayError::GatewaySpecError {
source,
p2p_message_metadata: _,
}) => {
557330f
to
d361c98
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 4 of 5 files reviewed, 2 unresolved discussions (waiting on @alonh5 and @Itay-Tsabary-Starkware)
crates/starknet_http_server/src/errors.rs
line 33 at r2 (raw file):
Previously, Itay-Tsabary-Starkware wrote…
Encountered a ClientError
Done.
crates/starknet_http_server/src/errors.rs
line 43 at r2 (raw file):
Previously, Itay-Tsabary-Starkware wrote…
Please add a todo to
into_rpc()
on the entirety ofGatewayError
, not just thesource
member.
Done.
d361c98
to
872a99e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 1 files at r3, 2 of 2 files at r4, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @alonh5 and @yair-starkware)
crates/starknet_http_server/src/errors.rs
line 44 at r4 (raw file):
p2p_message_metadata: _, }) => { // TODO(Itay): Add the p2p_message_metadata to the error response.
- I go by
Tsabary
:-) - The todo is for you :-)
Non-blocking, but please change 👍
Code quote:
// TODO(Itay): Add the p2p_message_metadata to the error response.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @alonh5 and @yair-starkware)
872a99e
to
94917af
Compare
…nversion to the http server
94917af
to
8a6e87b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 4 of 4 files at r5, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @alonh5)
No description provided.